import { Node, Prefab } from "cc"

// 存放一些节点等数据，供各组件间调用

export class Battle {
    static playerNode: Node //player节点，存放
    static DamageTextParent: Node //伤害数字节点，存放
    static EnemyParent: Node  //敌人父节点，存放
    static PlayerBulletParent: Node //玩家子弹父节点
    static MapNode: Node //地图节点
    static Camera: Node //相机节点
    static EnemyTree: Node;  //敌人树父节点
    static MainTowerNode: Node //主塔节点，存放

    static EnergyObjParent: Node //能量点节点，存放

    static ContentParent: Node
    static SkillEffectParent: Node;

    // // 存放动态加载后的预制体
    static prefabs: Record<string, Prefab> = {};

    static startGame: boolean = false;

    static createEnemyNum: number = 5;

    static IsFirstTree: boolean = false;
    static PolygonNav2D: Node;
}